<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery-ui.js"></script>
<link rel="stylesheet" href="<?= $this->config->base_url(); ?>assets/css/jquery-ui.css" type="text/css" charset="utf-8" />


<div class="header">
 <h1 class="page-title">Order Received</h1>
  </div>
 <ul class="breadcrumb">
 <li class="active">New Order Received</li>
       </ul>
	   </br>
	   </br>
	   </br>

<div class="row-fluid">
<div class="span12 pad_all">

<form method="post" action="<?php echo site_url(); ?>/admin/order/received_part">
<div class="span1"></div>
<div class="span3">
<label><b>Order No</label>
<input type="text"  name="order" id="order"onkeyup="get_case_no(this.value)";>
<label><b>Received Date</b></label>
&nbsp;<input type="text"  id="received_date"class="date1"name="received_date"></div>
<div class="span5"> </div>
<div id="detail">

</div>
</div></div>
<script>

$(document).ready(function(){
	$('.date1').datepicker({ dateFormat: 'yy-mm-dd' });

	
})
function get_date(i)
{ 
var t='#'+'manufacturing_date'+i
	$(t).datepicker({ dateFormat: 'yy-mm-dd' });
}

 function get_case_no(docket)
 {
	var id=docket

		$.post("<?= site_url('admin/order/get_case_no')?>",{ id:id }, function(msg){ 
		 document.getElementById('detail').innerHTML = msg;
			
		})
	
 
 }
 


</script>